package com.zhongx.xingcd.zxxcd.service.impl;

import com.zhongx.xingcd.zxxcd.mapper.KeyWordFriendDao;
import com.zhongx.xingcd.zxxcd.service.KeyWordFriendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class KeyWordFriendServiceImpl implements KeyWordFriendService {
    @Autowired
    private KeyWordFriendDao keyWordFriendDao;


    @Override
    public List getKeyword(Map params) {
        return keyWordFriendDao.getKeyword(params);
    }

    @Override
    public List getLinkInfo(Map params) {
        return keyWordFriendDao.getLinkInfo(params);
    }

    @Override
    public int intoKeyword(Map params) {
        return keyWordFriendDao.intoKeyword(params);
    }

    @Override
    public int intoLinkInfo(Map params) {
        return keyWordFriendDao.intoLinkInfo(params);
    }

    @Override
    public int deleteKeyword(int keyword_id) {
        return keyWordFriendDao.deleteKeyword(keyword_id);
    }

    @Override
    public int deleteLinkInfo(int link_id) {
        return keyWordFriendDao.deleteLinkInfo(link_id);
    }
}
